var MAP_ID_CHZ_SANRENCHANG = 318;
var MAP_ID_CHZ_SHOUXINGSIRENCHANG = 319;
var MAP_ID_QIYANG_LUODISAO = 320; //todo 320 test == 330 二人
var MAP_ID_HENGYANG_LIUHUQIANG = 312;
var MAP_ID_JIANGYONGSWZ = 327;

var MAP_ID_ZHUANZHUAN = 1;
var MAP_ID_WUHAN_KAIKOU = 4;
var MAP_ID_WUHAN_KOUKOU = 6;
var MAP_ID_CHANGSHA = 5;
var MAP_ID_KWX_XF = 2;
var MAP_ID_CHENZHOU = 60;
var MAP_ID_CHANGDE = 61;
var MAP_ID_YIYANG = 64;
var MAP_ID_YUEYANG = 67;
var MAP_ID_YUEYANG_ZHUOXIAZI = 68;
var MAP_ID_TAOJIANGWANG = 69;
var MAP_ID_LEIYANG = 110;
var MAP_ID_LEIYANGHONGZHONG = 111;
var MAP_ID_YONGZHOUCHEHUZI = 300;
var MAP_ID_HONGZHONG = 22;//红中麻将


var MAP_ID_PDK = 200;
var MAP_ID_DDZ_JD = 201;
var MAP_ID_DDZ_LZ = 202;
var MAP_ID_XIANGYANG_PDK = 203;
var MAP_ID_LAIZI_DDZ = 206;
var MAP_ID_ZJH = 207;
var MAP_ID_NN = 209;

var MAP_ID = {
    MAP_ID_CHZ_SANRENCHANG: 318
    , MAP_ID_CHZ_SHOUXINGSIRENCHANG: 319
    , MAP_ID_QIYANG_LUODISAO: 320
    , MAP_ID_JIANGYONGSWZ: 327
    , MAP_ID_PDK: 200
    , MAP_ID_ZHUANZHUAN: 1
    , MAP_ID_HONGZHONG: 22
    , WANG_DIAO: 101
};

var bgArr = [
    ['table_back_0', 'table_backbig_0', 'table_paibei_0'],
    ['table_back_1', 'table_backbig_1', 'table_paibei_1'],
    ['table_back_2', 'table_backbig_2', 'table_paibei_2'],
];

var majiang_create = {};

var majiang_create_room_tabData = {
    btn_1: {
        click: ['mapid_0'],
        show: ['fengding','word_wf','word_fufei','word_jushu','word_rs'],
        hide: []
    },
};


majiang_create.pos3X = {
    1: 475,
    2: 715,
    3: 955
};
majiang_create.pos4X = {
    1: 475,
    2: 625,
    3: 775,
    4: 925
};
majiang_create.posY = {
    1: 574,
    2: 519,
    3: 464,
    4: 409,
    5: 354,
    6: 299,
    7: 244,
    8: 189,
    9: 134,

};
var majiang_create_room_wanFaData = [
    ['mapid', [
        ['王钓麻将', app.map_id.WD, -1000, -1000, false, true, false],
    ]],
    ['AA', [
        ['房主支付', false, majiang_create.pos3X[1], majiang_create.posY[1], true, true, false, null, ['mapid_0']],
        ['AA支付', true, majiang_create.pos3X[2], majiang_create.posY[1], false, true, false, null, ['mapid_0']]
    ]],
    ['jushu', [
        ['6局', 6, majiang_create.pos3X[1], majiang_create.posY[2], true, true, false, null, ['mapid_0']],
        ['8局', 8, majiang_create.pos3X[2], majiang_create.posY[2], false, true, false, null, ['mapid_0']],
        ['10局', 10, majiang_create.pos3X[3], majiang_create.posY[2], false, true, false, null, ['mapid_0']]
    ]],
    ['maxPlayerCnt', [
        ['2人', 2, majiang_create.pos3X[3],  majiang_create.posY[3], false, true, false, null, ['mapid_0']],
        ['3人', 3, majiang_create.pos3X[2],  majiang_create.posY[3], false, true, false, null, ['mapid_0']],
        ['4人', 4, majiang_create.pos3X[1],  majiang_create.posY[3], true, true, false, null, ['mapid_0']]
    ]],
    ['withYingHu', [
        ['两片', true, majiang_create.pos3X[1],  majiang_create.posY[4], true, false, false, null, ['mapid_0']]
    ]],
    ['withQiangGangHu', [
        ['抢杠胡', true, majiang_create.pos3X[2],  majiang_create.posY[4], true, false, false, null, ['mapid_0']]
    ]],
    ['withQiDui', [
        ['七对可胡', true, majiang_create.pos3X[3],  majiang_create.posY[4], true, false, false, null, ['mapid_0']]
    ]],
    ['withPiao', [
        ['飘', true, majiang_create.pos3X[1],  majiang_create.posY[5], true, false, false, null, ['mapid_0']]
    ]],
    ['quanKaiFang', [
        ['全开放', true, majiang_create.pos3X[2],  majiang_create.posY[5], false, false, false, null, ['mapid_0']]
    ]],
    ['zhuaMaNum', [
        ['4码', 4, majiang_create.pos4X[1],  majiang_create.posY[6], true, true, false, null, ['mapid_0']],
        ['6码', 6, majiang_create.pos4X[2],  majiang_create.posY[6], false, true, false, null, ['mapid_0']],
        ['8码', 8, majiang_create.pos4X[3],  majiang_create.posY[6], false, true, false, null, ['mapid_0']],
        ['数字码',100, majiang_create.pos4X[4],   majiang_create.posY[6], false, true, false, null, ['mapid_0']]
    ]]
];

/**
 * 混桌适配文件
 * @type {Object}
 */
// var majiang_club_hunzhuo = {
//     'btn_1': {
//         'hide': ['liangrenwan', 'sanrenwan', 'siren'],
//         'view': ['wanjiarenshu0', 'wanjiarenshu1', 'wanjiarenshu2'],
//     },
//     'btn_2': {
//         'hide': ['maxPlayerCnt'],
//         'view': ['newwanjiarenshu0','newwanjiarenshu1','newwanjiarenshu2'],
//     },
//    'btn_3': {
//        'hide': ['maxPlayerCnt'],
//        'view':  ['newwanjiarenshu0','newwanjiarenshu1'],
//         // 'hide': ['liangrenwan_ket', 'sanrenwan_ket'],
//         // 'view': ['wanjiarenshu0_ket', 'wanjiarenshu1_ket'],
//     },
// };

var majiang_fangka = {
    btn_1: [[4, 8, 16], [1,2, 4]],
};